﻿//-----------------------------------------------------------------------
// <copyright file="IGuildMemberRepository.cs" company="FastNET Services">
//     Copyright (c) 2008-2009. All Rights Reserved.
// </copyright>
// <license>
//     GPLv2
// </license>
// <warranty>
//     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
//     BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
//     NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
//     DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
//     OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
// </warranty>
//-----------------------------------------------------------------------
#region Usings

using System.Collections.Generic;
using GateShift.Common.Repository.Interfaces.DataInterfaces;
using GateShift.Common.Repository.Interfaces.Repositories.Base;

#endregion

namespace GateShift.Common.Repository.Interfaces.Repositories
{
    /// <summary>
    /// Public repository interface for IGuildRankData
    /// </summary>
    public interface IGuildMemberRepository : IIdentityRepository<IGuildMemberData>
    {
        /// <summary>
        /// Retrieves all the members for a specific guild
        /// </summary>
        /// <param name="GuildID">Identity of the guild to retrieve by</param>
        /// <returns>List of IGuildMemberData with all matching results</returns>
        IList<IGuildMemberData> RetrieveByGuildID(Identity GuildID);

        /// <summary>
        /// Retrieves all the members by the specified rank ID
        /// </summary>
        /// <param name="GuildRankID">Identity of the guild to retrieve by</param>
        /// <returns>List of IGuildMemberData with all matching results</returns>
        IList<IGuildMemberData> RetrieveByGuildRankID(Identity GuildRankID);

        /// <summary>
        /// Retrieves a member by their character ID
        /// </summary>
        /// <param name="CharacterID">Identity of the character to retrieve by</param>
        /// <returns>List of IGuildMemberData with all matching results</returns>
        IGuildMemberData RetrieveByCharacterID(Identity CharacterID);
    }
}